
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule,FormBuilder,FormGroup,ReactiveFormsModule } from '@angular/forms';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; 
import { AppComponent } from './app.component';
import {RouterModule} from '@angular/router';
import { HttpModule,JsonpModule ,Http} from '@angular/http';
import { appRoutes } from "./app.routes";
import {UserLoginService} from './login/loginservice/login.service';
/**
 * 导入ng-zorro模块
 */
import {NgZorroAntdModule,NZ_MESSAGE_CONFIG} from 'ng-zorro-antd';
import { RegisterComponent } from './register/register.component';



@NgModule({
  declarations: [
    AppComponent,
    RegisterComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    RouterModule,
    HttpModule,
    ReactiveFormsModule,
    BrowserAnimationsModule,
    RouterModule.forRoot(appRoutes),
    NgZorroAntdModule.forRoot()
    
  ],
  providers: [
    UserLoginService,
    { 
      provide: NZ_MESSAGE_CONFIG,
      useValue: {
         nzDuration: 3000 
        }
    }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
